-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Align proto package paths and python generated package paths. #13
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm except for the makefile step to replace the package name
I like the standardization on keysight_chakra.protobuf as the package name as it follows the google protobuf naming convention. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would be a good example to follow:
https://github.com/googleapis/googleapis/tree/master/google
Except that we don't have a mono repo for all our protos in one place.
Here's the google chat API for example:
https://github.com/googleapis/googleapis/blob/master/google/chat/v1/chat_service.proto
See how it imports other .protos.
With that it would be something like keysight/chakra/v1alpha/*.proto
Versioning is something we should have, for example.
"protobuf" is only used for protobuf library related files.
I see. Maybe we could do
to make a distinction between our custom protos and et_def.proto, which we pull directly from mlcommons. As for having versioning in the directory structure, is it something we could put off until we know there is active third-party consumption of these protos? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are we including generated code? it should only be proto files - the generated code comes as part of the package at build time.
I forgot to update .gitignore and accidentally pushed the generated code. I'll undo that |
Summary of changes
In python generated class context, all generated code
*_pb2
is imported fromkeysight_chakra.infra
orkeysight_chakra.mlcommons
When compiling protos from this package with your own protos,
.proto
files import definitions like this:The imports are used in messages like this: